//
//  BKLHealth_MCView.h
//  BKLMedicalCare
//
//  Created by ma c on 2017/6/14.
//  Copyright © 2017年 q mac. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
    健康医疗模块view
 */
@interface BKLHealth_MCView : UIView
@property (nonatomic, weak)id deleagte;
@end


@class BKLHealth_MCNavigatonView;
@protocol BKLHealth_MCNavigatonViewDelegate <NSObject>
- (void)navigationView:(BKLHealth_MCNavigatonView *)view didSelect:(NSInteger)index;

@end

/**
    健康医疗模块导航视图
 */
@interface BKLHealth_MCNavigatonView : BKLHealth_MCView
- (void)scrollAtIndex:(NSInteger)index;
- (void)scrollDidScrll:(CGFloat)x;
@end


@class BKLHealth_MCAppointmentOfMedicalView;
@protocol BKLHealth_MCAppointmentOfMedicalViewDelegate <NSObject>
- (void)appointmentOfMedicalViewDidSelected:(BKLHealth_MCAppointmentOfMedicalView *)view;
@end
/**
    预约体检 view
 */
@interface BKLHealth_MCAppointmentOfMedicalView : BKLHealth_MCView

@end


@class BKLHealth_MCMultipleTitlesView;
@protocol BKLHealth_MCMultipleTitlesViewDelegate <NSObject>
- (void)multipleTitlesView:(BKLHealth_MCMultipleTitlesView *)view didSelectedItemAtIndexPath:(NSIndexPath *)indexPath;
@end
/**
    多标题视图
 */
@interface BKLHealth_MCMultipleTitlesView : BKLHealth_MCView
/**
 * collection cell class name
 * 该类需要声明并实现4个方法
 * - (void)didSelected;  被选中
 * - (void)didDeselected; 不被选中
 * - (void)fillData:(id)data; 填充数据，数据为 titleSource 数组中一条属于它的数据
 * + (NSValue *)computeSize:(id)data; 返回Item大小
 */
@property (nonatomic, copy) NSString *collectionCellClassName;

@property (nonatomic, copy) NSArray *titleSource;
@property (nonatomic, assign) CGSize  itemSize;
@property (nonatomic, assign) CGFloat leftSpacing;
@property (nonatomic, assign) CGFloat rightSpacing;
@property (nonatomic, assign) CGFloat lineSpacing;
@property (nonatomic, assign) CGFloat interitemSpacing;

- (void)selectedItemAtIndex:(NSInteger)index animated:(BOOL)animated;
- (void)reloadData;
@end

